package com.jy.adscm.operation.cg.bean;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 供应商基础信息表
 * </p>
 *
 * @author zyl
 * @since 2019-07-07
 */
public class CgSupplier implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 供应商编号
     */
    private String code;
    /**
     * 供应商名称首字母
     */
    private String letter;
    /**
     * 供应商名字
     */
    private String name;
    /**
     * 联系人
     */
    private String contacts;
    /**
     * 地址
     */
    private String address;
    /**
     * 传真
     */
    private String fax;
    /**
     * 手机
     */
    private String phone;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 开户行
     */
    @TableField("openingBank")
    private String openingBank;
    /**
     * 账户
     */
    private String account;
    /**
     * 税号
     */
    private String tax;
    /**
     * 质保金
     */
    @TableField("qualityMoney")
    private String qualityMoney;
    /**
     * 营业执照照片
     */
    @TableField("businessLicensePhoto")
    private String businessLicensePhoto;
    /**
     * 税务登记证照片
     */
    @TableField("taxPhoto")
    private String taxPhoto;
    /**
     * 医疗相关资质
     */
    @TableField("treatmentCorrelation")
    private String treatmentCorrelation;
    /**
     * 其他资质
     */
    @TableField("otherQualification")
    private String otherQualification;
    /**
     * 场地面积
     */
    @TableField("siteSize")
    private String siteSize;
    /**
     * 人数
     */
    @TableField("peopleNums")
    private Integer peopleNums;
    /**
     * 设备数量
     */
    @TableField("equipmentNums")
    private Integer equipmentNums;
    /**
     * 属性
     */
    private String property;
    @TableField("kernelProduct")
    private String kernelProduct;
    /**
     * 关键工艺
     */
    @TableField("cruxCraft")
    private String cruxCraft;
    /**
     * 有无设计能力
     */
    @TableField("isDesignAbility")
    private Integer isDesignAbility;
    /**
     * 填写人
     */
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    /**
     * 填写时间
     */
    @TableField("createTime")
    private Date createTime;
    /**
     * 发票类型
     */
    @TableField("makeInvoiceType")
    private String makeInvoiceType;
    @TableField(exist = false)
    private String makeInvoiceTypeName;
    /**
     * 付款方式，先付款后发货，还是货到付款，付押金
     */
    @TableField("paymentMethod")
    private Integer paymentMethod;
    @TableField(exist = false)
    private String paymentMethodName;
    /**
     * 运输方式
     */
    @TableField("transporttationMethod")
    private Integer transporttationMethod;
    @TableField(exist = false)
    private String transporttationMethodName;
    /**
     * 付款周期 用于计算计划付款时间
     */
    @TableField("paymentPeriod")
    private Integer paymentPeriod;
    /**
     * 预付款金额
     */
    @TableField("advanceSum")
    private String advanceSum;
    //欠款
    private  Float oweMoney;
    //欠票
    private   Float oweTicket;
    //1是否口罩生产厂家
    private  Integer type;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @TableField(exist = false)
private CgBomSupplier cgBomSupplier;

    public CgBomSupplier getCgBomSupplier() {
        return cgBomSupplier;
    }

    public void setCgBomSupplier(CgBomSupplier cgBomSupplier) {
        this.cgBomSupplier = cgBomSupplier;
    }

    public Float getOweMoney() {
        return oweMoney;
    }

    public void setOweMoney(Float oweMoney) {
        this.oweMoney = oweMoney;
    }

    public Float getOweTicket() {
        return oweTicket;
    }

    public void setOweTicket(Float oweTicket) {
        this.oweTicket = oweTicket;
    }

    public String getMakeInvoiceTypeName() {
        return makeInvoiceTypeName;
    }

    public void setMakeInvoiceTypeName(String makeInvoiceTypeName) {
        this.makeInvoiceTypeName = makeInvoiceTypeName;
    }

    public String getPaymentMethodName() {
        return paymentMethodName;
    }

    public void setPaymentMethodName(String paymentMethodName) {
        this.paymentMethodName = paymentMethodName;
    }

    public String getTransporttationMethodName() {
        return transporttationMethodName;
    }

    public void setTransporttationMethodName(String transporttationMethodName) {
        this.transporttationMethodName = transporttationMethodName;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getLetter() {
        return letter;
    }

    public void setLetter(String letter) {
        this.letter = letter;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getOpeningBank() {
        return openingBank;
    }

    public void setOpeningBank(String openingBank) {
        this.openingBank = openingBank;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getTax() {
        return tax;
    }

    public void setTax(String tax) {
        this.tax = tax;
    }

    public String getQualityMoney() {
        return qualityMoney;
    }

    public void setQualityMoney(String qualityMoney) {
        this.qualityMoney = qualityMoney;
    }

    public String getBusinessLicensePhoto() {
        return businessLicensePhoto;
    }

    public void setBusinessLicensePhoto(String businessLicensePhoto) {
        this.businessLicensePhoto = businessLicensePhoto;
    }

    public String getTaxPhoto() {
        return taxPhoto;
    }

    public void setTaxPhoto(String taxPhoto) {
        this.taxPhoto = taxPhoto;
    }

    public String getTreatmentCorrelation() {
        return treatmentCorrelation;
    }

    public void setTreatmentCorrelation(String treatmentCorrelation) {
        this.treatmentCorrelation = treatmentCorrelation;
    }

    public String getOtherQualification() {
        return otherQualification;
    }

    public void setOtherQualification(String otherQualification) {
        this.otherQualification = otherQualification;
    }

    public String getSiteSize() {
        return siteSize;
    }

    public void setSiteSize(String siteSize) {
        this.siteSize = siteSize;
    }

    public Integer getPeopleNums() {
        return peopleNums;
    }

    public void setPeopleNums(Integer peopleNums) {
        this.peopleNums = peopleNums;
    }

    public Integer getEquipmentNums() {
        return equipmentNums;
    }

    public void setEquipmentNums(Integer equipmentNums) {
        this.equipmentNums = equipmentNums;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }

    public String getKernelProduct() {
        return kernelProduct;
    }

    public void setKernelProduct(String kernelProduct) {
        this.kernelProduct = kernelProduct;
    }

    public String getCruxCraft() {
        return cruxCraft;
    }

    public void setCruxCraft(String cruxCraft) {
        this.cruxCraft = cruxCraft;
    }

    public Integer getIsDesignAbility() {
        return isDesignAbility;
    }

    public void setIsDesignAbility(Integer isDesignAbility) {
        this.isDesignAbility = isDesignAbility;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getMakeInvoiceType() {
        return makeInvoiceType;
    }

    public void setMakeInvoiceType(String makeInvoiceType) {
        this.makeInvoiceType = makeInvoiceType;
    }

    public Integer getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(Integer paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public Integer getTransporttationMethod() {
        return transporttationMethod;
    }

    public void setTransporttationMethod(Integer transporttationMethod) {
        this.transporttationMethod = transporttationMethod;
    }

    public Integer getPaymentPeriod() {
        return paymentPeriod;
    }

    public void setPaymentPeriod(Integer paymentPeriod) {
        this.paymentPeriod = paymentPeriod;
    }

    public String getAdvanceSum() {
        return advanceSum;
    }

    public void setAdvanceSum(String advanceSum) {
        this.advanceSum = advanceSum;
    }

    @Override
    public String toString() {
        return "CgSupplier{" +
        "id=" + id +
        ", code=" + code +
        ", letter=" + letter +
        ", name=" + name +
        ", contacts=" + contacts +
        ", address=" + address +
        ", fax=" + fax +
        ", phone=" + phone +
        ", email=" + email +
        ", openingBank=" + openingBank +
        ", account=" + account +
        ", tax=" + tax +
        ", qualityMoney=" + qualityMoney +
        ", businessLicensePhoto=" + businessLicensePhoto +
        ", taxPhoto=" + taxPhoto +
        ", treatmentCorrelation=" + treatmentCorrelation +
        ", otherQualification=" + otherQualification +
        ", siteSize=" + siteSize +
        ", peopleNums=" + peopleNums +
        ", equipmentNums=" + equipmentNums +
        ", property=" + property +
        ", kernelProduct=" + kernelProduct +
        ", cruxCraft=" + cruxCraft +
        ", isDesignAbility=" + isDesignAbility +
        ", creator=" + creator +
        ", createTime=" + createTime +
        ", makeInvoiceType=" + makeInvoiceType +
        ", paymentMethod=" + paymentMethod +
        ", transporttationMethod=" + transporttationMethod +
        ", paymentPeriod=" + paymentPeriod +
        ", advanceSum=" + advanceSum +
        "}";
    }
}
